package com.example.cxz2021606127.activity;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.example.cxz2021606127.R;
import com.example.cxz2021606127.util.ExitActivityUtil;
import com.example.cxz2021606127.util.MySqLiteHelper;
import com.google.android.material.textfield.TextInputEditText;

public class RegisterActivity extends AppCompatActivity {
    MySqLiteHelper helper;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);

        //添加该Activity到ExitActivityUtil对象实例容器中
        ExitActivityUtil.getInstance().addActivity(this);

        //创建数据库
        helper = new MySqLiteHelper(this, "SAVE_USER.db", null, 1);
        SQLiteDatabase database = helper.getReadableDatabase();

    }
}